package com.etone.smartAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etone.smartAudit.domain.ItemMember;
import com.etone.smartAudit.vo.item.ItemMemberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: sovy
 * @date: 2020/11/9
 * @description:
 */

@Mapper
public interface ItemMemberMapper extends BaseMapper<ItemMember> {

    /**
     * 通过项目id删除项目成员
     *
     * @param itemId 项目id
     * @return
     */
    int deleteByItemId(@Param("itemId") Integer itemId);

    /**
     * 查找项目成员
     *
     * @param itemId
     * @return
     */
    List<ItemMemberVO> findByItemId(@Param("itemId") Integer itemId);
}